import link from "./link";

export function getAdmin(params={}){
    return link('/admin',"get",{},params)
}

export function getAllAdmin(){
    return link('/admin',"get")
}

export function deleteAdmin(id=""){
    return link('/admin/'+id,"Delete")
}

export function addImg(params={}){
    return link('/admin',"post",params)
}

export function updateAdmin(id="",data={}){
    return link('/admin/'+id,"put",data)
}